﻿using Grpc.Core;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace GrpcGreeter
{
    public class OrderService:Order.OrderBase
    {
        private readonly ILogger<OrderService> _logger;
        public OrderService(ILogger<OrderService> logger)
        {
            _logger = logger;
        }
        public override Task<OrderList> QueryOrderList(OrderSearch request, ServerCallContext context)
        {
            var result = new OrderList();
            result.OrderList_.Add(new OrderModel() { OrderNo="O1234",Status=1});
            return Task.FromResult(result);
        }
    }
}
